import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class demo9 {
    public static void main(String[] args){
        try(Writer writer=new FileWriter("d:/test.txt",true)){
            writer.write("我在学习文件IO");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
